﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsGame1.ItemClasses
{
    public class Weapon : BaseItem
    {
        int attackValue;
        int attackBonus;

        public int AttackValue
        {
            get { return attackValue; }
            protected set { attackValue = value; }
        }

        public int AttackBonus
        {
            get { return attackBonus; }
            protected set { attackBonus = value; }
        }

        public Weapon(string weaponName,int price,int weight,ItemSize size,int attackValue,int attackBonus)
            : base(weaponName, price, weight, size)
        {
            AttackValue = attackValue;
            AttackBonus = attackBonus;
        }

        public override object Clone()
        {
            Weapon weapon = new Weapon(Name,Price,Weight,Size,AttackValue,AttackBonus);
            return (object)weapon;
        }
    }
}
